package io.kiki.task.client.common;

import io.kiki.task.client.common.rpc.supports.http.Request;
import io.kiki.task.client.common.rpc.supports.http.Response;
import io.kiki.task.client.common.rpc.supports.scan.EndPointInfo;


public interface HandlerInterceptor {

    boolean preHandle(Request request, Response response, EndPointInfo handler);

    void postHandle(Request request, Response response, EndPointInfo handler);

    void afterCompletion(Request request, Response response, EndPointInfo handler, Exception ex);

    int order();
}
